body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: Arial, sans-serif;
}

#map-container {
    width: 100vw;
    height: 100vh;
    touch-action: none;
}

.country {
    fill: #ccc;
    stroke: #fff;
    stroke-width: 0.5;
    cursor: pointer;
    transition: fill 0.3s;
}

.country:hover {
    fill: #999;
}

.country[data-name="Singapore"] {
    stroke-width: 1;
    fill: #ccc;
}

.antarctica {
    fill: #e8e8e8;
    stroke: #fff;
    stroke-width: 0.5;
    cursor: default;
}

.antarctica:hover {
    fill: #e8e8e8;
}

.country-label {
    fill: #333;
    pointer-events: none;
    text-shadow: -1px -1px 0 #fff,
                 1px -1px 0 #fff,
                 -1px 1px 0 #fff,
                 1px 1px 0 #fff;
}

.ocean-label {
    fill: #2b71b5;
    pointer-events: none;
    font-style: italic;
    text-shadow: -1px -1px 0 rgba(255,255,255,0.7),
                 1px -1px 0 rgba(255,255,255,0.7),
                 -1px 1px 0 rgba(255,255,255,0.7),
                 1px 1px 0 rgba(255,255,255,0.7);
}

#country-info {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1000;
    width: 400px;
}

#country-info.hidden {
    display: none;
}

#close-info {
    position: absolute;
    right: 10px;
    top: 10px;
    border: none;
    background: none;
    font-size: 24px;
    cursor: pointer;
}

.flag-container {
    margin: 20px 0;
}

.flag-container h4 {
    margin: 10px 0;
    color: #333;
}

#country-flag, #country-coat {
    max-width: 200px;
    height: auto;
    display: block;
    margin: 10px 0;
    border: 1px solid #eee;
}

.flag-description {
    font-size: 0.9em;
    color: #666;
    margin: 8px 0;
    font-style: italic;
}

#country-description {
    margin-top: 15px;
    line-height: 1.5;
}

#teams {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

#teams h3 {
    margin-bottom: 10px;
    color: #333;
}

#teams ul {
    list-style-type: none;
    padding-left: 0;
}

#teams li {
    padding: 5px 0;
    color: #555;
}

#teams li:not(:last-child) {
    border-bottom: 1px solid #f5f5f5;
}

#search-container {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    gap: 10px;
    background: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

#search-input {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    width: 200px;
}

#search-button {
    padding: 8px 15px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

#search-button:hover {
    background: #45a049;
}

#search-results {
    position: fixed;
    top: 70px;
    left: 20px;
    z-index: 1000;
    background: white;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    max-height: 200px;
    overflow-y: auto;
    width: 200px;
    display: none;
}

.search-result-item {
    padding: 8px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.search-result-item:hover {
    background: #f5f5f5;
}

.capital-marker {
    fill: red;
    stroke: white;
    stroke-width: 1;
    pointer-events: none;
    opacity: 0.9;
}

.capital-label {
    fill: #333;
    font-weight: bold;
    pointer-events: none;
    text-shadow: -1px -1px 0 #fff,
                 1px -1px 0 #fff,
                 -1px 1px 0 #fff,
                 1px 1px 0 #fff;
}

.capital-marker, .capital-label {
    transition: transform 0.3s;
}

@media (max-width: 768px) {
    #country-info {
        width: 90%;
        max-height: 80vh;
    }
    
    #country-flag, #country-coat {
        max-width: 150px;
    }
}

@media (max-width: 768px) {
    #search-container {
        top: 10px;
        left: 10px;
        right: 10px;
    }
    
    #search-input {
        width: 100%;
    }
    
    #search-results {
        left: 10px;
        right: 10px;
        width: auto;
    }
}